#ifndef _LUAWND_H_H
#define _LUAWND_H_H
#include "Script.h"

class CLuaEdit : public CScriptInterface
{
public:
	static CLuaEdit& Instance();
	CLuaEdit();
	~CLuaEdit();
	virtual bool Init(lua_State* L, const char* name);
protected:
	static CWnd* GetWnd(lua_State* L, int idx=1);
	static int SetWindowText(lua_State* L);
	static int GetWindowText(lua_State* L);
	static int AppendWindowText(lua_State* L);
};


class CLuaListCtrl : public CScriptInterface
{
public:
	static CLuaListCtrl& Instance();
	CLuaListCtrl();
	~CLuaListCtrl();
	virtual bool Init(lua_State* L, const char* name);
protected:
	static CWnd* GetWnd(lua_State* L, int idx=1);
	static int GetItemCount(lua_State* L);
	static int GetItemText(lua_State* L);
	static int SetItemText(lua_State* L);

	static int GetColumnCount(lua_State* L);
	static int GetColumn(lua_State* L);
	static int SetColumn(lua_State* L);

	static int DeleteAllItems(lua_State* L);
	static int DeleteAllColumns(lua_State* L);
	static int DeleteColumn(lua_State* L);
	static int DeleteItem(lua_State* L);

	static int InsertColumn(lua_State* L);
	static int InsertItem(lua_State* L);
};

#endif